/*
 * @Author: your name
 * @Date: 2020-03-13 16:02:28
 * @LastEditTime: 2020-03-30 21:11:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-imooc-ebook\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './lang'
import './assets/styles/icon.css'
import './assets/styles/global.scss'
import http from './http'
import './utils/boost'
import './utils/create-api'
import VueResource from 'vue-resource'
import echarts from 'echarts'

// element-ui的全部组件
import ElementUI from 'element-ui'
// element-ui的css
import 'element-ui/lib/theme-chalk/index.css'
// 使用elementUI
Vue.use(ElementUI)

Vue.use(VueResource)
// axios初始化
Vue.config.productionTip = false
Vue.prototype.$axios = http
Vue.prototype.$echarts = echarts
// vued的实例化过程中我们会将vue里面的store传入#app内
new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
